// /common/http.api.js

const install = (Vue, vm) => {
	vm.$u.api={}
	const http = uni.$u.http
	
	vm.$u.api.index = (params = {}) => http.get('/index',params);
	
	
	vm.$u.api.gameSearch = query => http.get(`/game/search?query=${query}`);
}

export default {
	install
}